import wepy from 'wepy'

export default class extends wepy.mixin {
    data = {
        //购物车
        cart: {}
    }

    onLoad() {
        this.getCart()
    }

    //请求购物车数据
    async getCart() {
        const {data: res} = await wepy.request({
            url: "http://www.minsu.com/cart/index",
            method: 'POST',
            data: {
                u_id: 9
            }
        })
        console.log(res);
    }
    methods = {
        
    }
}